#include<iostream>
using namespace std;
int main ()
{
    int n;


    cout<<"Ingrese un numero par"<<endl;
    cin>>n;
    if(n%2==0)
    {
        while(n!=1)
        {
            n=n/2;
            cout<<" "<<n;
        }


    }else
    {
        cout<<"ERROR";
    }

    return 1;
}
